import Vue from 'vue'
import moment from 'moment'

Vue.filter('dateFromat', function (date, dateFromatStr = 'YYYY-MM-DD HH:mm:ss') {
  return moment(date).format(dateFromatStr)
})